<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* input{
            width: 200px;
            height: 30px;
            border-radius: 40px;
            border: 1px solid #666;
            position: relative;
        }
        img{
            position: absolute;
            left: 160px;
            top: 18px;
        }
        span{
            position: absolute;
            left: 176px;
            top: 12px;
        } */
        *{
            margin: 0;
            padding:0;
        }
        .search{
            margin: 100px auto;
            width: 240px;
            height: 44px;
            border: 1px solid #666;
            position: relative;
            border-radius: 15px;
            overflow: hidden;
        }
        .search-input{
            border: none;
            width: 180px;
            height: 44px;
            position: absolute;
            left: 0;
            top: 0;
        }
        input,button{
            outline: none;
        }
        button{
            border: none;
            width: 60px;
            height: 44px;
            position: absolute;
            top: 0;
            right: 0;
            background: url(images/search.png) no-repeat;
            background-position-y: center;
            text-indent: 10px;
        }
    </style>
</head>
<body>
    <!-- <input type="text" placeholder="搜索">
    <img src="images/search.png" alt="">
    <span>搜索</span> -->
    <div class="search">
        <input type="text" class="search-input">
        <button class="search-btn">搜索</button>
    </div>
</body>
</html>